import { createStore } from 'vuex'

const ADMIN = "ADMIN";

export default createStore({
  state: {
    admin: window.SessionStorage.get(ADMIN) || {}
  },
  getters: {
  },
  mutations: {
    setAdmin(state,_admin){
      state.admin = _admin;
      window.SessionStorage.set(ADMIN, _admin);
    }
  },
  actions: {
  },
  modules: {
  }
})
